﻿if (!window.wkh.classes) {
    window.wkh.classes = {
        controls: {}
    };
}

if (!window.wkh.classes.controls) {
    window.wkh.classes.controls = {};
}

wkh.classes.controls.Input = (function () {
    var base = wkh.classes.controls.Control;//基类
    var basePro = base.prototype;//基类原型

    var inputNum = 0;//button数量

    var pri;//私有变量

    var style = {
        lightgray: null//..
    };

    function initBase(/*arg*/) {
        var preN = base.getNum();
        base.call();
        var nowN = base.getNum(/*arg*/);
        if (nowN > preN) {
            ++inputNum;
        }
    }

    function classInput(div, setting) {
        this.__wkh_private_getInputPrivate = function () {
            pri = privateVar;
        }

        setting = setting || {};
        if (!setting.style) {
            setting.style = "lightgray";
        }

        switch (setting.style) {
            case "lightgray":
                setting.style = style.lightgray;
                //**
                break;

            default:
                break;
        }

        var privateVar = {
            name: setting.name || "Input",
            //**
        }

        initBase(/*arg*/);
        div.getClassList().add("__wkh_private_Input");

        //..
    }

    classInput.prototype = Object.create(basePro);
    classInput.prototype.className = "Input";

    //...

    classInput.prototype.getNum = function () {
        return inputNum;
    };
    classInput.__wkh_private_className = "Input";

    return classInput;
}())